<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
define('BASE_URL', 'http://local.fp.vn/');
define('ADMIN_SKIN', 'themes/standard/');
define('BASE_IMAGE', 'media/product/');
define('DEFAULT_NO_IMAGE', 'themes/standard/images/no_image.gif');
define('CACHE_MINUTE', 5);
define('CACHE_TIMEOUT', 999999);
define('ARTICLE_PER_PAGE', 25);

/*
  |--------------------------------------------------------------------------
  | Global
  |--------------------------------------------------------------------------
  |
  | These prefs are used when checking and setting modes when working
  | with the file system.  The defaults are fine on servers with proper
  | security, but you may wish (or even need) to change the values in
  | certain environments (Apache running a separate process for each
  | user, PHP under CGI with Apache suEXEC, etc.).  Octal values should
  | always be used to set the mode correctly.
  |
 */
define('GLOBAL_PREFIX_CACHE', 'sachvn_');
define('GLOBAL_ENABLED_CACHE', true);
define('GLOBAL_COLLECTION_SIZE', 15);
define('GLOBAL_PAGE_SIZE', 10);
define('GLOBAL_CACHE_DURATION', 600);
/*
  |--------------------------------------------------------------------------
  | File and Directory Modes
  |--------------------------------------------------------------------------
  |
  | These prefs are used when checking and setting modes when working
  | with the file system.  The defaults are fine on servers with proper
  | security, but you may wish (or even need) to change the values in
  | certain environments (Apache running a separate process for each
  | user, PHP under CGI with Apache suEXEC, etc.).  Octal values should
  | always be used to set the mode correctly.
  |
 */
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);

/*
  |--------------------------------------------------------------------------
  | File Stream Modes
  |--------------------------------------------------------------------------
  |
  | These modes are used when working with fopen()/popen()
  |
 */

define('FOPEN_READ', 'rb');
define('FOPEN_READ_WRITE', 'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE', 'ab');
define('FOPEN_READ_WRITE_CREATE', 'a+b');
define('FOPEN_WRITE_CREATE_STRICT', 'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');

define("SP", "/");
define("APP_LIBRARY_PATH", "./application/libraries/");
define("APP_MEDIA_PATH", "./application/media/");
define("APP_MODULE_PATH", "./application/modules/");


/* End of file constants.php */
/* Location: ./application/config/constants.php */
/*
  |--------------------------------------------------------------------------
  | FOR EDITOR
  |--------------------------------------------------------------------------
  |
  | These modes are used when working with fopen()/popen()
  |
 */
if (!isset($config)) {
    require_once 'config.php';
}
define('CKFINDER_BASE_DIR', str_replace('/index.php', '', $config['base_url']) . 'js/3rd party/ckfinder/');

/*
  CRAWLER
 */
define('ARTICLE_IMAGE_THUMB_WIDTH', 160);

define('MEMCACHE_HOST', 'localhost');
define('MEMCACHE_PORT', '11211');

/*
  URL
 */
define('STORE_PREFIX_URL', 'nha-sach/');
define('STORE_AUTHOR_URL', 'nha-sach/');